import request from "./http";


// 主页数据
export function getData(){
    return request({
        url:"/common/homePageInfoN",
        method:"get",
        params:{
            'gradeKey':'0',
            'pvalue':'{"appId":"210951669544977408","v":"1.0.0","os":"web","terminalType":"2","timestamp":1669171880066,"terminalid":"bb5224e2-42b8-487b-8011-f039ab7b92d3","appSign":"126a4ca283d77fc77a8a9fd85cdcd41f","token":"c0e13b3e52a6d4b41701fb32529016ba744615a32501dc843c784ba328de0266d8d1cd358086ba52","userId":"1319390829241653571"}'
        }
        
    })
}
// 主页数据2
export function getData2(){
    return request({
        url:"netcourse/getSpecialNet",
        method:"get",
        params:{
            'specialKey':'1595222837431430976',
            'pvalue':'{"appId":"210951669544977408","v":"1.0.0","os":"web","terminalType":"2","timestamp":1669725338492,"terminalid":"bb5224e2-42b8-487b-8011-f039ab7b92d3","appSign":"44a9b23889e0796b333279956f48c209","token":"","userId":""}'
        }
        
    })
}
// 书城页轮播图数据
export function getBookData(){
    return request({
        url:"/admodel/list",
        method:"get",
        params:{
            'adspace':'tsjx',
            'pvalue':'{"appId":"210951669544977408","v":"1.0.0","os":"web","terminalType":"2","timestamp":1669256579855,"terminalid":"ea7f1c9e-2d3c-4656-88a8-136312b13ade","appSign":"a6d6eded92649accb7fde2c13be4d7e2","token":"c0e13b3e52a6d4b41701fb32529016ba363ba1b3a10771e42a9bcaf572c004136bb76f49fa2ed9a7","userId":"1319390829241653571"}'
        }
        
    })
}
// 书城页书本数据
export function getBookShopData(){
    return request({
        url:"/goods/bookList",
        method:"get",
        params:{
            'pvalue':'{"appId":"210951669544977408","v":"1.0.0","os":"web","terminalType":"2","timestamp":1669273146083,"terminalid":"ea7f1c9e-2d3c-4656-88a8-136312b13ade","appSign":"902de8f05462ac0830e64f68352ad766","token":"c0e13b3e52a6d4b41701fb32529016ba363ba1b3a10771e42a9bcaf572c004136bb76f49fa2ed9a7","userId":"1319390829241653571"}'
        }
        
    })
}
//购买书的数据
export function getShopMessageData(key){
    return request({
        url:"/goods/detail",
        method:"get",
        params:{
            'key':key,
            'pvalue':'{"appId":"210951669544977408","v":"1.0.0","os":"web","terminalType":"2","timestamp":1669292179860,"terminalid":"ea7f1c9e-2d3c-4656-88a8-136312b13ade","appSign":"f187d9928df2d5340c566c28ddb2bb3c","token":"c0e13b3e52a6d4b41701fb32529016ba363ba1b3a10771e42a9bcaf572c004136bb76f49fa2ed9a7","userId":"1319390829241653571"}'
        }
        
    })
}
// 测试
export function getShopMessageData2(){
    return request({
        url:"/goods/detail",
        method:"get",
        params:{
            'key':'1551461681940448320',
            'pvalue':'{"appId":"210951669544977408","v":"1.0.0","os":"web","terminalType":"2","timestamp":1669292179860,"terminalid":"ea7f1c9e-2d3c-4656-88a8-136312b13ade","appSign":"f187d9928df2d5340c566c28ddb2bb3c","token":"c0e13b3e52a6d4b41701fb32529016ba363ba1b3a10771e42a9bcaf572c004136bb76f49fa2ed9a7","userId":"1319390829241653571"}'
        }
        
    })
}

// 书城进入
export function getnetShop(key){
    return request({
        url:"/netcourse/detail",
        method:"get",
        params:{
            "key":key,
            'pvalue':'{"appId":"210951669544977408","v":"1.0.0","os":"web","terminalType":"2","timestamp":1669286950988,"terminalid":"bb5224e2-42b8-487b-8011-f039ab7b92d3","appSign":"adb223b6cdb8b032a0d1d7980c1d0ee2","token":"","userId":""}'
        }
        
    })
}
// 搜索
export function getserch(key){
    return request({
        url:"/goods/bookList",
        method:"get",
        params:{
            "keyword":key,
            
            'pvalue':'{"appId":"210951669544977408","v":"1.0.0","os":"web","terminalType":"2","timestamp":1669357806239,"terminalid":"bb5224e2-42b8-487b-8011-f039ab7b92d3","appSign":"2002f6a70153fdf7dda077d8dae5dea0","token":"","userId":""}'
        }
        
    })
}
// 首页的二级页面数据
export function getmode(num,dowm){
    return request({
        url:"/netcourse/search",
        method:"get",
        params:{
            "type":num,
            "grade":"1",
            "page":dowm,
            "step":"15",
            'pvalue':'{"appId":"210951669544977408","v":"1.0.0","os":"web","terminalType":"2","timestamp":1669895638245,"terminalid":"bb5224e2-42b8-487b-8011-f039ab7b92d3","appSign":"92ac9548012824a947c3cafaeb2c8cab","token":"","userId":""}'
        }
        
    })
}
// 目录数据
export function getmulu(key){
    return request({
        url:"/netcourse/catalogue",
        method:"get",
        params:{
            'key':key,
            'pvalue':'{"appId":"210951669544977408","v":"1.0.0","os":"web","terminalType":"2","timestamp":1669990904710,"terminalid":"bb5224e2-42b8-487b-8011-f039ab7b92d3","appSign":"77ea57ed823130b029ae174944a9dbe8","token":"","userId":""}'
        }
        
    })
}
